package com.stx.blog.service.impl;

import java.util.List;

import com.stx.blog.dao.ArticleDao;
import com.stx.blog.service.ArticleService;
import com.stx.blog.vo.ArticleVo;
import com.stx.blog.vo.BcategoryVo;
import com.stx.blog.vo.UserVo;

public class ArticleServiceImpl implements ArticleService{

	private ArticleDao ad;
	public ArticleDao getAd() {
		return ad;
	}
	public void setAd(ArticleDao ad) {
		this.ad = ad;
	}
	@Override
	public List<BcategoryVo> findBcategory(UserVo uv) {
		
		return ad.findBcategory(uv);
	}
	@Override
	public void addBcategory(BcategoryVo bv) {
		ad.addBcategory(bv);
	}
	@Override
	public void delBcategory(BcategoryVo bv) {
		ad.delBcategory(bv);
		
	}
	@Override
	public void addArticle(ArticleVo av) {
		ad.addArticle(av);
	}
	@Override
	public List<ArticleVo> findArticle(UserVo uv) {
		return ad.findArticle(uv);
	}
	@Override
	public void delArticle(ArticleVo av) {
		ad.delArticle(av);
	}
	@Override
	public void updateArticle(ArticleVo av) {
		ad.updateArticle(av);	
	}
	@Override
	public ArticleVo getArticle(ArticleVo av) {
		
		return ad.getArticle(av);
	}
    
}
